<template>
    <div class="page-group">
        <header class="bar bar-nav">
            <button class="button button-link button-nav pull-left" @click="back">
                <span class="icon  icon-chevron-left"></span>
                返回
            </button>
            <h1 class="title">全屏视图</h1>
        </header>
        <div class="content">
            <graphic id="full" v-ref:full :sl-rate="slRate" height-fix="-60"></graphic>
        </div>
    </div>
</template>
<style>
</style>
<script>
    import Graphic from './EChartGraphics.vue'
    import * as FStorage from '../util/FStorage'
    import * as FWindow from '../util/FWindow'
    export default{
        components: {
            Graphic
        },
        methods: {
            back: function () {
                window.history.back()
            }
        },
        computed: {
            slRate: function () {
                return FWindow.windowSize().slRate
            }
        },
        ready(){
            var option = FStorage.getSesstionItem('fullGraphics');
            this.$refs.full.setOption(option)
        }
    }
</script>
